package com.edfu.core.commons.persistence.api;

import java.util.List;

import com.edfu.core.commons.persistence.entity.ResourceEntity;
import com.edfu.core.commons.persistence.entity.ResourceMappingEntity;

public interface IResourceMgtPersistence {
	
	public ResourceEntity addResource(ResourceEntity re);
	
	public ResourceEntity getResource(String uuid);

	public ResourceMappingEntity mapResource(long resourceId, long parentId, String parentType);

	public List<ResourceMappingEntity> getParents(ResourceEntity resourceEntity);

	public List<ResourceMappingEntity> getResourceMappings(long parentId, String parentType);

	public void deleteResource(String uuid);		

}
